import { Component } from "~/utils/enums"
import * as c from "~/utils/components"
import BaseForm from "@admin/entity/base/BaseForm"

export default class Dept extends BaseForm {
    deptId = ''
	parentId = ''
	
    clear(): void {
        this.setForm(new Dept(this.opts))
        this.resetFields()
    }
    
	getDeptId(): c.TreeSelect {
        return {
            type: Component.TreeSelect,
            label: '发生',
            config: {
                url: '/system/dept/list',
                valueTarget: 'deptId',
                labelTarget: 'deptName'
            },
			element: {
			}
        }
    }

	getParentId(): c.Radio {
        return {
            type: Component.Radio,
            label: '刚刚大概',
            config: {
                dict: 'sys_normal_disable'
            }
        }
    }
}
